<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('发送短信')" />
</head>

<body class="white-bg">
<div class="pageContent">
	<form class="form-horizontal m" id="form-approve-send">
		<input type="hidden" name="procurementDeclareId" th:value="${procurementDeclareId}"/>
		<div th:if="${list.size()} eq 0">
			没有可发送短信的供应商
		</div>
		<div th:if="${list.size()} ne 0">
			<div class="form-group" th:each="list:${list}">
				<!--<c:forEach items="${list}" var="list">-->
							<label class="col-sm-1 ">
								<input type="checkbox" name="supplierMobles" th:value="${list.sysSupplier.moble}+'#'+${list.sysGoodparameter.goodName}"/>
								<!--<input type="checkbox" name="supplierMobles" th:value="${list.sysSupplier.moble}"/>-->
							</label>
							<label class="col-sm-3 " th:text="${list.sysSupplier.supplierName}"></label>
							<label class="col-sm-3 ">商品：<span th:text="${list.sysGoodparameter.goodName}"></span></label>
							<label class="col-sm-3 ">价格：<span th:text="${list.offerAmount}"></span>￥</label>

				<!--</c:forEach>-->
			</div>
		</div>
	<!--<form method="post" action="approveAction/sendMessageToSupplier.action" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">-->
		<!--<div class="pageFormContent" layoutH="56">-->
			<!--<c:forEach items="${list}" var="list">-->
				<!--<dl class="nowrap">-->
					<!--<dd style="width: 760px;">-->
               			<!--<label style="width: 300px;"><input type="checkbox" name="supplierMobles" value="${list.supplier.moble}#${list.goodParameter.goodName}"/>${list.supplier.supplierName}</label><label style="width: 300px;">商品：${list.goodParameter.goodName}</label><label style="width: 120px;">价格：${list.offerAmount}￥</label>-->
					<!--</dd>-->
				<!--</dl>-->
			<!--</c:forEach>-->
		<!--</div>-->
		<!--<div class="formBar">-->
		<!--<input type="hidden" name="procurementDeclareId" th:value="${procurementDeclareId}"/>-->
			<!--<label style="float:left">-->
				<!--<input type="checkbox" class="checkboxCtrl" group="supplierMobles" />全选</label>-->
			<!--<ul>-->
				<!--<li><div class="buttonActive">-->
						<!--<div class="buttonContent">-->
							<!--<button type="submit">发送</button>-->
						<!--</div>-->
					<!--</div>-->
				<!--</li>-->
				<!--<li>-->
					<!--<div class="button">-->
						<!--<div class="buttonContent">-->
							<!--<button type="button" class="close">取消</button>-->
						<!--</div>-->
					<!--</div></li>-->
			<!--</ul>-->
		<!--</div>-->
	</form>

</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
	var prefix = ctx + "system/approve"
	$("#form-approve-send").validate({
		focusCleanup: true
	});

	function submitHandler() {
		console.log($('#form-approve-send').serialize())
		if ($.validate.form()) {
			$.operate.save(prefix + "/sendMessageToSupplier", $('#form-approve-send').serialize());
		}
	}

</script>
</body>
